<?php
	$rs= $db->Query("select * from servicios where id_presu='".$_GET["numero"]."'");
 ?>

<div id="servicios">
<h3>- SERVICIOS -</h3>
<input type="button" name="addrow" value="A&ntilde;adir Servicio"
	onclick="addItemSrv();" />
<table id="sitems">
	<tr>
		<th>Tipo</th>
		<th>Cantidad</th>
		<th>Importe</th>
		<th>Total</th>
		<th>Borrar</th>
	</tr>
		<?php
		$cont_srv=200;
		while($row=mysql_fetch_array($rs)){
			echo'<tr id="srvrow'.$cont_srv.'">
			<td><input type="text" class="inputstipo" name="stipo'.$cont_srv.'" value="'.$row["tipo"].'"/></td>
			<td><input type="text" id="scant'.$cont_srv.'" class="sumars" name="scnt'.$cont_srv.'" value="'.$row["cantidad"].'"/></td>
			<td><input type="text" id="sprecio'.$cont_srv.'" class="sumars" name="spre'.$cont_srv.'" value="'.$row["importe"].'"/>&#8364</td>
			<td><input type="text" class="sumars" id="sptt'.$cont_srv.'" name="sptt'.$cont_srv.'" readonly value="'.$row["total"].'"/>&#8364</td>
			<td><img class="sdeleterow" id="sdelrow'.$cont_srv.'" src="img/delete.gif" alt="borrar" /></td>
			</tr>';
		$cont_srv++;
		}
	 ?>
</table>
<p>Total Servicios: <input type="text" id="srvtotal" name="srvtotal"
	 value="<?php echo $fila->total_srv;?>" readonly />&#8364;</p>
</div>
